Namespace - LJCNetCommon
Parameters
bytes - The byte array.
Returns
The reference to the memory stream.
Syntax
C# |
public static Stream BytesToMemStream(Byte[] bytes)
|
Copies a byte array to a memory stream. (E)
Example
C# |
using System.IO;
using LJCNetCommon;
private static void BytesToMemStream()
{
byte[] bytes = NetCommon.TextToBytes("Text");
using (Stream stream = NetCommon.BytesToMemStream(bytes))
{
string text = NetCommon.MemStreamToString(stream);
}
}
|
Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.